<?php

include(dirname(__FILE__) . '/tools/Route.php');

include('./libs/Smarty.class.php');
$smarty = new Smarty();
$smarty->left_delimiter = "{";
$smarty->right_delimiter = "}";

$mgt = Route::get('mgt');
$provinces = $mgt->getProvinces();
$provinces = json_decode($provinces, true)['Data'];

// 4、绑定符合数据到前端
$smarty->assign('provinces', $provinces);
// 5、显示前端页面
$smarty->display('./index.html');
